package reduce.fz.com.reduce.activity;

import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;

import reduce.fz.com.reduce.R;
import reduce.fz.com.reduce.fragment.SocietyMemberFragment;
import reduce.fz.com.reduce.fragment.SocietyMemberRankFragment;

public class SocietyMemberActivity extends BaseToolBarActivity {

    //社团id
    private Long sid;
    //社团fragment
    private SocietyMemberFragment fragment;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setToolbarTitle("社团成员");
        setContentView(R.layout.activity_society_member);
        sid=getIntent().getLongExtra("sid", 0l);
        attachFragment();
    }

    @Override
    public void initWidget() {

    }

    @Override
    public void initListener() {

    }

    /**
     *
     */
    public void attachFragment() {
        fragment = SocietyMemberFragment.create(sid);
        getSupportFragmentManager().beginTransaction().replace(R.id.main_container, fragment).commit();
    }

}
